import request from '@/utils/request'


// 查询出租的房屋列表
export function listHouses(query) {
  return request({
    url: '/system/houses/wxlist',
    method: 'get',
    params: query
  })
}

// 查询出租的房屋详细
export function getHouses(id) {
  return request({
    url: '/system/houses/' + id,
    method: 'get'
  })
}

//获取出租管理员
export function getRentalAdministratorByIsadmin(isadmin) {
  return request({
    url: '/system/rentaladmin/getRentalAdministratorByIsadmin/' + isadmin,
    method: 'get'
  })
}

// 根据经续度查询出租的房屋列表 以1公里为距离范围内
export function selectHousesByLatLng(lat,lnt,distance) {
  return request({
    url: '/system/houses/selectHousesByLatLng/'+lat+'/'+lnt+'/'+distance,
    method: 'get',
  })
}